﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dialog_address_edit.aspx.cs" Inherits="Donal.Xms.Web.qianyi.dialog.dialog_address_edit" %>

<%@ Import Namespace="Donal.Xms.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>地址编辑</title>
    <link rel="stylesheet" type="text/css" href="../skin/icon/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="gb2312" src="../../scripts/jquery/PCASClass.js?v=202208311727"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>

    <script type="text/javascript">
        var api = top.dialog.get(window); //获取父窗体对象
        //页面加载完成执行
        $(function () {

            //初始化表单验证
            $("#form1").initValidform();

            var mypcas = new PCAS("txtProvince,所属省份", "txtCity,所属城市", "txtArea,所属地区");

            var areaArr = '<%=area%>'.split(",");
            if (areaArr.length == 3) {
                mypcas.SetValue(areaArr[0], areaArr[1], areaArr[2]);
            }

            $("select.select").change(function () {
                $("[id$='" + $(this).attr("name").replace("txt", "hid") + "']").val($(this).val());
            });
        });

    </script>
</head>

<body>
    <form id="form1" runat="server">
        <div class="div-content">
            <dl>
                <dt>所属公司</dt>
                <dd id="items">
                    <input type="text" id="txtCompany" class="input normal" value="<%=company_name %>" datatype="*2-100" style="width: 350px;" disabled="disabled" />
                    <input id="hidParentId" type="hidden" runat="server" value="0" />
                    <input type="hidden" id="hidCompanyName" runat="server" />
                </dd>
            </dl>
            <dl>
                <dt>默认类型</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rbtGroup" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0" Selected="True">无</asp:ListItem>
                            <asp:ListItem Value="1">默认为收货地址</asp:ListItem>
                           <%-- <asp:ListItem Value="2">默认为发票地址</asp:ListItem>
                            <asp:ListItem Value="3">收货与发票相同</asp:ListItem>--%>
                        </asp:RadioButtonList>
                    </div>

                </dd>
            </dl>

            <dl>
                <dt>收件人</dt>
                <dd>
                    <asp:TextBox ID="txtUserName" runat="server" CssClass="input normal" datatype="*2-100" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*收件人</span></dd>
            </dl>
            <dl>
                <dt>手机号码</dt>
                <dd>
                    <asp:TextBox ID="txtMobile" runat="server" CssClass="input normal" datatype="*" sucmsg=" "></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>电话号码</dt>
                <dd>
                    <asp:TextBox ID="txtTelphone" runat="server" CssClass="input normal" datatype="/(^$)|(^.{7,30}$)/"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>邮箱账号</dt>
                <dd>
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="input normal" MaxLength="50" datatype="/(^$)|(^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$)/" sucmsg=" "></asp:TextBox>
                </dd>
            </dl>
            <dl>
                <dt>地区</dt>
                <dd>
                    <select id="txtProvince" name="txtProvince" class="select" runat="server"></select>
                    <input type="hidden" id="hidProvince" runat="server" />
                    <select id="txtCity" name="txtCity" class="select" runat="server"></select>
                    <input type="hidden" id="hidCity" runat="server" />
                    <select id="txtArea" name="txtArea" class="select" runat="server"></select>
                    <input type="hidden" id="hidArea" runat="server" />

                </dd>
            </dl>
            <dl>
                <dt>邮编</dt>
                <dd>
                    <asp:TextBox ID="txtPostCode" runat="server" CssClass="input normal" MaxLength="6" datatype="/(^$)|(^\d{6}$)/" Width="80"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>通讯地址</dt>
                <dd>
                    <asp:TextBox ID="txtAddress" runat="server" CssClass="input normal" datatype="*2-200" sucmsg=" " Width="350px" MaxLength="200"></asp:TextBox></dd>
            </dl>
        </div>
        <!--工具栏-->
        <div class="page-footer" style="text-align: right;">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />

            </div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
